Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update req ~> 0.4.0; fix warning for logger and req retry #14

Merged
merged 1 commit into from
Jan 10, 2024

Conversation

Oliphaunte
Copy link
Contributor

Several packages I am using now use req 0.4.0 as default, and I realized this package is locked at 0.3.0

There are some breaking changes with how headers are handled in 0.4, but we can pass config :req, legacy_headers_as_lists: true to bypass these changes until req 1.0

I wanted to go ahead and update, but I had a lot of trouble figuring out where the changes broke and did not have enough time to do a deep dive. The bypass should work for the foreseeable future.

https://hexdocs.pm/req/changelog.html#v0-4-0-2023-09-01

Tests are passing with the updated config

Thanks for the great package!

@@ -237,7 +237,7 @@ defmodule AbsintheClient do

iex> req =
...> Req.new(base_url: "http://localhost:4002/", auth: {:bearer, "invalid-token"})
...> |> AbsintheClient.attach(retry: :never)
...> |> AbsintheClient.attach(retry: false)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warning from req requests this change, does not seem like it should affect anything

@mcrumm mcrumm merged commit 6c94112 into CargoSense:main Jan 10, 2024
2 checks passed
@mcrumm
Copy link
Member

mcrumm commented Jan 10, 2024

Thanks for this, and sorry for the delay!

🍬 🍫 🍭 🍰 🍨

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants